libxc: Reorder functions in xc_misc.c to avoid weak symbol problem
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Feb 2010 13:16:39 +0000 (13:16 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Feb 2010 13:16:39 +0000 (13:16 +0000)
commite670c28c9f0b284c05e4e8a6c4001899b13129c8
tree7b4cc21e99ac8ea7afd2c91ea56db675b750d01b
parent7a381d270730709ace882969937f53552970c97d
libxc: Reorder functions in xc_misc.c to avoid weak symbol problem

Using a function, and then declaring it weak later, has undefined
behaviour:
  cc1: warnings being treated as errors
  xc_misc.c:388: error: weak declaration of 'xc_map_foreign_bulk'
  after first use results in unspecified behavior

So swap the functions xc_map_foreign_pages and xc_map_foreign_bulk.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_misc.c